package cn.onlineclass.dao;

import cn.onlineclass.entity.OVideo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OVideoMapper {
    //查询所有
    public List<OVideo> findAll();

    //增加
    public int add(OVideo t);
    //修改
    public int update(OVideo t);

    //删除
    public int del(OVideo t);

    //根据id查找单个商品类型信息
    public OVideo get(long id);
    //查询和分页
//@Param("pageNo")转xml
    public List<OVideo> search(@Param("pageNo")int pageNo, @Param("pageSize")int pageSize, @Param("title")String title,@Param("bookid")String bookid);//后面个通过什么查找
    //找出当前查询条件下，符合条件的总数
    public int searchTotal( @Param("title")String title,@Param("bookid")String bookid);

}
